<template>
  <div id="address">
    <b>用户地址</b>
    <el-table :data="addressData" style="width: 100%">
      <el-table-column prop="account" label="用户账号" width="180">
      </el-table-column>
      <el-table-column prop="receiveName" label="收货姓名" width="180">
      </el-table-column>
      <el-table-column prop="receiveProvince" label="省"> </el-table-column>
      <el-table-column prop="receiveCity" label="市"> </el-table-column>
      <el-table-column prop="receiveCounty" label="县区"> </el-table-column>
      <el-table-column prop="receiveAddress" label="详细地址" width="200">
      </el-table-column>
      <el-table-column prop="receivePhone" label="收货电话"> </el-table-column>
      <el-table-column prop="zipCode" label="邮编"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { getAddress } from "@/api/address.js";
export default {
  data() {
    return {
      addressData: [],
      keyword: { currentPage: 1, pageSize: 4 },
    };
  },
  created() {
    getAddress(this.keyword).then((res) => {
      if (res.data.code === "0000") {
        this.addressData = res.data.data.records;
      }
    });
  },
  methods: {},
};
</script>

<style>
</style>